<?php
/**
 * Created by PhpStorm.
 * User: wangsentao
 * Date: 2018/2/2
 * Time: 下午2:26
 */

namespace app\admin\controller\v1;


class Init
{
    public function initUser()
    {
        $model = model('app\common\Model\AdminUser');
        $model->acc_id = GenToken();
        $model->realname = 'admin';
        $model->phone = '15565704238';
        $model->status = 0;
        $model->passwd = 'admin';
        $model->access_token = GenToken();
        $model->user_type = 0;
        $model->create_time = date('Y-m-d H:i:s', time());
        $model->update_time = date('Y-m-d H:i:s', time());
        $model->save();
    }
}